package 命令模式;

public class Main {
    public static void main(String[] args) {
        Receiver receiver=new Receiver();
        Command cmd=new MyCommand(receiver);
        Invoker invoker=new Invoker(cmd);
        invoker.action();
    }
}
